package com.itrus.auth.demo.person.basic;

import com.itrus.auth.demo.core.BaseAuth;
import lombok.extern.slf4j.Slf4j;

import java.util.HashMap;
import java.util.Map;

/**
 * 个人实名综合接口
 *
 * @author : peigen
 * @since: 2023/8/1 16:59
 */
@Slf4j
public abstract class PersonBasicAuth extends BaseAuth {

    protected String REQUEST_PATH = "/person/authIden";

    public Map<String, String> getRequestMap(String name, String idCard) {
        Map<String, String> requestMap = new HashMap<>(8);
        requestMap.put("appId", config.getAppId());
        requestMap.put("serviceCode", getServiceCode());
        requestMap.put("name", name);
        requestMap.put("idCard", idCard);
        return requestMap;
    }
}
